package org.itheima.config;

import com.itheima.domain.User;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig {
    @Bean
    @ConditionalOnClass(name = {"redis.clients.jedis.Jedis"})
    public User user(){
        return new User();
    }
}
